import request from '@/utils/request'

// 查询落地页留言列表
export function listAdMessage(query) {
  return request({
    url: '/lclook/adMessage/list',
    method: 'get',
    params: query
  })
}

// 查询落地页留言详细
export function getAdMessage(id) {
  return request({
    url: '/lclook/adMessage/' + id,
    method: 'get'
  })
}

// 新增落地页留言
export function addAdMessage(data) {
  return request({
    url: '/lclook/adMessage',
    method: 'post',
    data: data
  })
}

// 修改落地页留言
export function updateAdMessage(data) {
  return request({
    url: '/lclook/adMessage',
    method: 'put',
    data: data
  })
}

// 删除落地页留言
export function delAdMessage(id) {
  return request({
    url: '/lclook/adMessage/' + id,
    method: 'delete'
  })
}

// 导出落地页留言
export function exportAdMessage(query) {
  return request({
    url: '/lclook/adMessage/export',
    method: 'get',
    params: query
  })
}